export const categories = (id) => {
  return [
    { _id: '1', category: 'all', name: '全部商品' },
    { _id: '2', category: 'all', name: '秒杀' },
    { _id: '3', category: 'fruit', name: '新鲜水果' },
    { _id: '4', category: 'all', name: '休闲食品' },
    { _id: '5', category: 'all', name: '时令蔬菜' },
    { _id: '6', category: 'eggs', name: '肉蛋家禽' },
  ]
}
export const getProducts = (tab) => {
  const products = {
    all: [
      {
        _id: '1',
        name: '番茄1 250g/份',
        imgUrl: 'http://www.dell-lee.com/imgs/vue3/near.png',
        sales: 10,
        price: 33.3,
        oldPrice: 39.6
      },
      {
        _id: '2',
        name: '番茄2 250g/份',
        imgUrl: 'http://www.dell-lee.com/imgs/vue3/near.png',
        sales: 10,
        price: 33.3,
        oldPrice: 39.6
      },
      {
        _id: '3',
        name: '番茄3 250g/份',
        imgUrl: 'http://www.dell-lee.com/imgs/vue3/near.png',
        sales: 10,
        price: 33.3,
        oldPrice: 39.6
      },
    ],
    fruit: [
      {
        _id: '1',
        name: '番茄1 250g/份',
        imgUrl: 'http://www.dell-lee.com/imgs/vue3/near.png',
        sales: 10,
        price: 33.3,
        oldPrice: 39.6
      }
    ],
    eggs: [
      {
        _id: '1',
        name: '番茄1 250g/份',
        imgUrl: 'http://www.dell-lee.com/imgs/vue3/near.png',
        sales: 10,
        price: 33.3,
        oldPrice: 39.6
      },
      {
        _id: '2',
        name: '番茄2 250g/份',
        imgUrl: 'http://www.dell-lee.com/imgs/vue3/near.png',
        sales: 10,
        price: 33.3,
        oldPrice: 39.6
      }
    ],
  }
  return products[tab]
}